package org.fuys.coder.domain.audit.model.vo;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.domain.audit.model.vo
 * @className: AuditResultTypeVO
 * @author: WangJing
 * @description: 审核结果类型视图类
 * @date: 2024/6/22 16:23
 * @version: 1.0
 */
public enum AuditResultTypeVO {
    PASS(1){
        public String getStrategy() {
            return "passStrategy";
        }
    },
    BLOCK(2){
        public String getStrategy(){
            return "blockStrategy";
        }
    },
    REVIEW(3){
        public String getStrategy(){
            return "reviewStrategy";
        }
    },
    FAILED(4){
        public String getStrategy(){
            //todo 设置审核出错失败策略
            return "failedStrategy";
        }
    },
    ONGOING(5){
        public String getStrategy(){
            return "ongoingStrategy";
        }
    };

    int index;

    AuditResultTypeVO(int index) {
        this.index = index;
    }

    public int getIndex() {
        return index;
    }

    public String getStrategy(){
        return null;
    }

    public static AuditResultTypeVO getByIdx(int index) {
        return AuditResultTypeVO.values()[index-1];
    }
}
